package com.example.educational.controller.utils;

import lombok.Data;

/**
 * 表现层结果返回
 */
@Data
public class Result {
    // 状态码
    private String code;
    // 数据
    private Object data;
    // 消息提示
    private String msg;


    public Result(String code) {
        this.code = code;
    }

    public Result(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Result(String code, Object data, String msg) {
        this.code = code;
        this.data = data;
        this.msg = msg;
    }
}
